﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Sprint1.Logic;
namespace Sprint1
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }
protected void Application_Error(object sender, EventArgs e) 
{
            Exception ex = Server.GetLastError();
            LogManager.LogException(ex);
            Server.ClearError();
            Server.Transfer("error.html");
       
}
    }
}
